#include "ALBPPattern.h"

ALBPPattern::ALBPPattern(void) : _group(0), _count(0), _locations() {
}

ALBPPattern::ALBPPattern(int group, int row, int col) : _group(group), _count(1) {
	_locations.push_back(std::make_pair(col, row));
}

ALBPPattern::~ALBPPattern(void) { }

void ALBPPattern::addLocation(std::pair<int,int> loc) {
	_locations.push_back(loc);
}

void ALBPPattern::incrementCount() { _count++; }

int ALBPPattern::getPatternGroup() { return _group; }

int ALBPPattern::getPatternCount() { return _count; }

void ALBPPattern::setPatternGroup(int group) { _group = group; }

std::list<std::pair<int,int>>::const_iterator ALBPPattern::patternBegin(void) {
	return _locations.begin();
}

std::list<std::pair<int,int>>::const_iterator ALBPPattern::patternEnd(void) {
	return _locations.end();
}
